mobileUnlockOrientation
Type
command
Summary
Allows orientation changes and updates the interface to the device's current orientation.
Syntax
mobileUnlockOrientation
Description
Use the mobileUnlockOrientation command to allow orientation changes which had been temporarily prevented.
The mobileUnlockOrientation command allows orientation changes to take place again, after first preventing them with the command mobileLockOrientation.
The orientation lock can be nested, and when an unlock request causes nesting to return to zero, the interface rotates to match the device's current orientation (assuming it is in the set of allowed orientations). You can query the current orientation lock state with the mobileOrientationLocked function.
Examples
mobileUnlockOrientation
if loadingComplete then mobileUnlockOrientation
Related
command: mobileSetAllowedOrientations, mobileLockOrientation
function: mobileDeviceOrientation, mobileOrientationLocked, mobileAllowedOrientations, mobileOrientation
message: orientationChanged
Compatibility and Support
Introduced
LiveCode 4.5.3
OS
ios
android
Platforms
mobile